package CtrlLayer;

import ModelLayer.*;
import DBLayer.*;

import java.util.ArrayList;
/**
 * CtrlSalesOrder.java
 * @author Brian Lassen
 * @version 22. Marts 2012
 */
public class CtrlSalesOrder {

	public CtrlSalesOrder() {}
	
	public static ArrayList<SalesOrder> findAllSalesOrder()
    {
        IFDBSalesOrder dbSalesOrder = new DBSalesOrder();
        ArrayList<SalesOrder> allSalesOrders = new ArrayList<SalesOrder>();
        allSalesOrders = dbSalesOrder.getAllSalesOrders(false);
        return allSalesOrders;
    }
	
	public static SalesOrder findById(int id)
	{
	    IFDBSalesOrder dbSalesOrder = new DBSalesOrder();
	    return dbSalesOrder.searchSalesOrderId(id, true);
	}
	
	
	
	
}
